package com.ncloud.crm.service.impl;

import java.util.List;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.crm.entity.BsNodeAttr;
import com.ncloud.crm.mapper.BsNodeAttrMapper;
import com.ncloud.crm.service.BsNodeAttrService;

@Service
public class BsNodeAttrServiceImpl implements BsNodeAttrService {
	
	private static final Logger logger = LogManager.getLogger(BsNodeAttrServiceImpl.class);
	@Autowired
	private BsNodeAttrMapper netAttrMapper;
	
	@Override
	public int insertNodeAttr(BsNodeAttr nodeAttr) {
		return netAttrMapper.insertNodeAttr(nodeAttr);
	}
	@Override
	public int updateNodeAttr(BsNodeAttr nodeAttr) {
		return netAttrMapper.updateNodeAttr(nodeAttr);
	}

	@Override
	public BsNodeAttr getValidNodeAttr(BsNodeAttr bsNodeAttr) {
		return netAttrMapper.getNodeEqptInfo(bsNodeAttr);
	}
	@Override
	public List<BsNodeAttr> getNodeAttrs(Long nodeId) {
		return netAttrMapper.getNodeAttrs(nodeId);
	}

	@Override
	public BsNodeAttr getNodeAttrByPk(BsNodeAttr bsNodeAttr) {
		return netAttrMapper.getNodeAttrByPk(bsNodeAttr);
	}
	@Override
	public List<BsNodeAttr> getBsNodeAttrs(Long nodeId) {
		return netAttrMapper.getBsNodeAttrs(nodeId);
	}
}
